package com.archtecture.view.utils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.archtecture.control.models.ModelAb;

public abstract class TelaPadraoAB<Model extends ModelAb> implements Serializable {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= -3588153125003970952L;

//	private Model				model;
//
//	public Model getModel() {
//		if (model == null) {
//			model = getInstance();
//		}
//		return model;
//	}
//
//	public abstract Model getInstance();
//
//	public void setModel(Model model) {
//		this.model = model;
//	}

	private List<Model>	modelList;

	public List<Model> getModelList() {
		if (modelList == null) {
			modelList = new ArrayList<Model>();
		}
		return modelList;
	}

	public abstract String getNomeTela();

	public String getSubTitulo() {
		return getNomeTela();
	}

	public String getHeader() {
		return getNomeTela();
	}

	public void setModelList(List<Model> modelList) {
		this.modelList = modelList;
	}

}
